Optimal. Leaf size=41 \[ -\frac {A b-a B}{2 b^2 \left (a+b x^2\right )}+\frac {B \log \left (a+b x^2\right )}{2 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {455, 45}
\begin {gather*} \frac {B \log \left (a+b x^2\right )}{2 b^2}-\frac {A b-a B}{2 b^2 \left (a+b x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 455
Rubi steps
\begin {align*} \int \frac {x \left (A+B x^2\right )}{\left (a+b x^2\right )^2} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {A+B x}{(a+b x)^2} \, dx,x,x^2\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (\frac {A b-a B}{b (a+b x)^2}+\frac {B}{b (a+b x)}\right ) \, dx,x,x^2\right )\\ &=-\frac {A b-a B}{2 b^2 \left (a+b x^2\right )}+\frac {B \log \left (a+b x^2\right )}{2 b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 41, normalized size = 1.00 \begin {gather*} \frac {-A b+a B}{2 b^2 \left (a+b x^2\right )}+\frac {B \log \left (a+b x^2\right )}{2 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 38, normalized size = 0.93
method | result | size |
default | \(\frac {B \ln \left (b \,x^{2}+a \right )}{2 b^{2}}-\frac {A b -B a}{2 b^{2} \left (b \,x^{2}+a \right )}\) | \(38\) |
norman | \(\frac {B \ln \left (b \,x^{2}+a \right )}{2 b^{2}}-\frac {A b -B a}{2 b^{2} \left (b \,x^{2}+a \right )}\) | \(38\) |
risch | \(\frac {B \ln \left (b \,x^{2}+a \right )}{2 b^{2}}-\frac {A}{2 b \left (b \,x^{2}+a \right )}+\frac {B a}{2 b^{2} \left (b \,x^{2}+a \right )}\) | \(47\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 40, normalized size = 0.98 \begin {gather*} \frac {B a - A b}{2 \, {\left (b^{3} x^{2} + a b^{2}\right )}} + \frac {B \log \left (b x^{2} + a\right )}{2 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.72, size = 44, normalized size = 1.07 \begin {gather*} \frac {B a - A b + {\left (B b x^{2} + B a\right )} \log \left (b x^{2} + a\right )}{2 \, {\left (b^{3} x^{2} + a b^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.23, size = 36, normalized size = 0.88 \begin {gather*} \frac {B \log {\left (a + b x^{2} \right )}}{2 b^{2}} + \frac {- A b + B a}{2 a b^{2} + 2 b^{3} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.29, size = 65, normalized size = 1.59 \begin {gather*} -\frac {B {\left (\frac {\log \left (\frac {{\left | b x^{2} + a \right |}}{{\left (b x^{2} + a\right )}^{2} {\left | b \right |}}\right )}{b} - \frac {a}{{\left (b x^{2} + a\right )} b}\right )}}{2 \, b} - \frac {A}{2 \, {\left (b x^{2} + a\right )} b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.05, size = 37, normalized size = 0.90 \begin {gather*} \frac {B\,\ln \left (b\,x^2+a\right )}{2\,b^2}-\frac {A\,b-B\,a}{2\,b^2\,\left (b\,x^2+a\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________